
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import oa.lla.cca.R
import bd.CK

class WaterMarkAdapter(val context:Context) : RecyclerView.Adapter<WaterMarkAdapter.Holder>() {
    class Holder(itemView: View) :RecyclerView.ViewHolder(itemView){
    }
    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): Holder {
        val inflate = LayoutInflater.from(context).inflate(R.layout.watermark_layout, null, false)
        return Holder(inflate)
    }

    override fun onBindViewHolder(holder: Holder, position: Int) {
        val findViewById = holder.itemView.findViewById<CK>(R.id.lean_text)
        findViewById.setmDegrees(45)
        findViewById.text = "导出到SK卡或删除图片\n下方操作"

    }

    override fun getItemCount(): Int = 12
}